public class TwoArrayTest1 {
    public static void main(String[] args) {
        //可以存储多组数据，每一组数据又是一个一维数组
        int[][] score = {{89,96,85,76}, {82,93,100}, {8,9,7,5,6,9}};
        /*int[][] score;
        score = new int[][]{{89,96,85,76}, {82,93,100}, {8,9,7,5,6,9}};*/


        // score.length代表一共有几组
        for (int i = 0; i < score.length; i++) {
//            System.out.println(score[i]);//看到的是地址值
            /*
            score[i]是一个一维数组
            score[0] 代表  {89,96,85,76}
            score[1] 代表  {82,93,100}
            score[2] 代表  {8,9,7,5,6,9}

            score[i].length是某一组的元素个数
            score[0].length 是 4
            score[1].length 是 3
            score[2].length 是 6
             */
            for (int j = 0; j < score[i].length; j++) {
                System.out.print(score[i][j]+" ");
            }
            System.out.println();
        }


    }
}
